package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Admin;
import com.stedu.mall.common.exception.SteduException;

public interface AdminService {
    Admin longin (String username, String password) throws SteduException;

    Admin selectById(Integer id);
    boolean update(Admin admin);

    boolean chgPwd(String oldPwd, String newPwd, Integer id);
    PageInfo<Admin> selectByCondition(Admin condition, Integer pageNum, Integer pageSize);

    boolean updatePwd(Admin admin);

    boolean insert(Admin admin) throws SteduException;
}
